package com.hos.net.req.doc;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.hos.net.req.BaseReq;
import com.hos.net.res.MsgHint;

/**
 * Created by Administrator on 2018/8/24 0024.
 */
@JsonIgnoreProperties(ignoreUnknown = true)
public class DocUpdateReq extends BaseReq {
    public String docId;
    public String docName;
    public String docPhone;
    public String docHead;
    public String docHosName;
    public String docHosId;
    public String docDeptName;
    public String docDeptId;
    public String docTitle;
    public String docWorkYear;
    public Integer docPower;//权限
    public Integer docState;
    public String docJs;//医生介绍
    public String docSc;//医生擅长
    @JsonIgnore
    public String hint;

    @JsonIgnore
    public boolean isVerifyParameter() {
        if (docId == null || docId == "") {
            hint = new MsgHint("医生id不能为空").toJson();
            return false;
        }
        return true;
    }
}
